package com.ithema.manger3.controller;

import com.ithema.manger3.domain.Student;
import com.ithema.manger3.service.StudentService;

import java.util.Scanner;

public class StudentController extends BaseStudentController{

    //创建键盘录入对象
    Scanner sc=new Scanner(System.in);

    //键盘录入学生信息
    public Student inputStudentInfo(String sid){
        System.out.println("请输入姓名");
        String name=sc.nextLine();
        System.out.println("请输入年龄");
        String age=sc.nextLine();
        System.out.println("请输入生日");
        String birthday=sc.nextLine();
        //创建学生对象录入信息
        Student stu=new Student();
        stu.setSid(sid);
        stu.setName(name);
        stu.setAge(age);
        stu.setBirthday(birthday);
        return stu;
    }
}
